package org.dawning.shop.common.commands.order;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.axonframework.commandhandling.TargetAggregateIdentifier;
import org.dawning.shop.common.domain.order.OrderId;
import org.dawning.shop.common.dto.OrderProductDto;
import org.dawning.shop.common.vo.Address;

import java.util.List;

/**
 * Created by miou on 2017/6/8 0008.
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class CreateOrderCommand {

    @TargetAggregateIdentifier
    private OrderId orderId;

    /** 下单人*/
    private String buyer;

    private List<OrderProductDto> products;

    private Address address;

}
